package com.zhuss.bean.bo.order.order;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.zhuss.common.BaseBo;
import com.zhuss.common.BasePageParam;
import com.zhuss.enums.订单状态显示2;
/**
 * @description: 订单查询bo
 * @author: zhushanshuo
 * @create: Mon Jan 11 10:24:29 CST 2021
 **/
public class SearchOrderBo extends BasePageParam implements Serializable, BaseBo {

	/**
	 *
	 */
	private static final long serialVersionUID = (long)(Math.random() * 2000000000000000000L);

	private Integer lineType;

	private Integer rideType;

	private String lineName;

	private Integer status;
	
	private List<Integer> statusList;

	private String onSiteName;

	private String offSiteName;
	
	private Date date;

	public Integer getLineType() {
		return lineType;
	}

	public void setLineType(Integer lineType) {
		this.lineType = lineType;
	}

	public Integer getRideType() {
		return rideType;
	}

	public void setRideType(Integer rideType) {
		this.rideType = rideType;
	}

	public String getLineName() {
		return lineName;
	}

	public void setLineName(String lineName) {
		this.lineName = lineName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public List<Integer> getStatusList() {
		if (status != null && status != 0) {
			订单状态显示2[] list = 订单状态显示2.class.getEnumConstants();
			for (订单状态显示2 baseEnum : list) {
				if (baseEnum.sameKey(status)) {
					return baseEnum.statusList();
				}
			}
		}
		return statusList;
	}
	
	public void setStatusList(List<Integer> statusList) {
		this.statusList = statusList;
	}

	public String getOnSiteName() {
		return onSiteName;
	}

	public void setOnSiteName(String onSiteName) {
		this.onSiteName = onSiteName;
	}

	public String getOffSiteName() {
		return offSiteName;
	}

	public void setOffSiteName(String offSiteName) {
		this.offSiteName = offSiteName;
	}
	
	public Date getDate() {
		return date;
	}
	
	public void setDate(Date date) {
		this.date = date;
	}
}
